package com.sfddata.musicpillow.oauth.feign;


import com.sfddata.musicpillow.common.respose.BaseRespose;
import com.sfddata.musicpillow.common.respose.EmptyObj;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("mp-thirdparty")
public interface ThirdPartyFeignService {

    @GetMapping("/sms/sendCode")
    BaseRespose<EmptyObj> sendMSGByFeign(@RequestParam("phone") String phone);

    @PostMapping("/sms/checkCode")
    Boolean checkCode(@RequestParam("phone") String phone, @RequestParam("code") String code);

    @PostMapping("/aurora/getNumber")
    BaseRespose<String> getNumber(@RequestParam("token")String token);

}
